]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
polkitAgent: Don't use setButtons
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 21 Dec 2012 16:16:52 +0000 (11:16 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 26 Dec 2012 03:18:42 +0000 (22:18 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=690594

js/ui/components/polkitAgent.js

index db32976a602618dc4df36aab60ba712530038c3e..65bc6ae63e9e36f2f81af24425ace21833cc3305 100644 (file)
@@ -159,14 +159,13 @@ const AuthenticationDialog = new Lang.Class({
         messageBox.add(this._nullMessageLabel);
         this._nullMessageLabel.show();
 
-        this.setButtons([{ label: _("Cancel"),
-                           action: Lang.bind(this, this.cancel),
-                           key:    Clutter.Escape
-                         },
-                         { label:  _("Authenticate"),
-                           action: Lang.bind(this, this._onAuthenticateButtonPressed),
-                           default: true
-                         }]);
+        this._cancelButton = this.addButton({ label: _("Cancel"),
+                                              action: Lang.bind(this, this.cancel),
+                                              key: Clutter.Escape });
+        this._okButton = this.addButton({ label:  _("Authenticate"),
+                                          action: Lang.bind(this, this._onAuthenticateButtonPressed),
+                                          default: true },
+                                        { expand: true, x_fill: false, x_align: St.Align.END });
 
         this._doneEmitted = false;